home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 2.iso
/
STUTTGART
/
LANG
/
C
/
LIB
/
UNIXLIB37B
/
!UnixLib37
/
src
/
c
/
assert
< prev
next >
Wrap
Text File
|
1996-11-09
|
770b
|
36 lines
/****************************************************************************
*
* $Source: /unixb/home/unixlib/source/unixlib37/src/c/RCS/assert,v $
* $Date: 1996/04/19 21:26:42 $
* $Revision: 1.1 $
* $State: Rel $
* $Author: simon $
*
* $Log: assert,v $
* Revision 1.1 1996/04/19 21:26:42 simon
* Initial revision
*
***************************************************************************/
static const char rcs_id[] = "$Id: assert,v 1.1 1996/04/19 21:26:42 simon Rel $";
#include <stdio.h>
#include <signal.h>
#include <assert.h>
int
__fail (char *exp, char *file, int line)
{
fprintf (stderr, "\n\"%s\", line %d: Assertion failed: %s\n", file, line, exp);
raise (SIGABRT);
return (0);
}
void
(assert) (register int x)
{
assert (x);
}